﻿using System.Threading.Tasks;
using System.Windows.Input;

using Outcoder.UI.Xaml;

namespace CalciumTemplateApp.Views
{
    public class AboutViewModel : ViewModel
    {
	    public AboutViewModel() : base(() => AppResources.Views_About_Title)
	    {
			exampleCommand = new UICommand("Test", ExecuteExampleCommand) { Text = "Button 2" };
	    }

		readonly UICommand exampleCommand;

		public ICommand ExampleCommand
		{
			get
			{
				return exampleCommand;
			}
		}

		async Task ExecuteExampleCommand(object arg)
		{
			await DialogService.ShowMessageAsync("Example command");
		}
    }
}
